import pandas as pd
import plotly_express as px

df1 = pd.DataFrame(
    {
        "name": ["张三", "李四", "王五", "赵六", "lili", "lucy"],
        "score": [100, 90, 80, 70, 60, 50],
        "age": [18, 19, 20, 21, 22, 23],
    }
)

fig = px.bar(
    df1,
    x="name",
    y="score",
    color="score",
    # hover_data=["score"],
)

fig.show()
